
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ include file="/support/taglibs.jsp" %>
<stripes:layout-render name="/support/layout/standard.jsp" title="Researchers" page="researchers">
<stripes:layout-component name="contents">

  Below is a list providing some basic information for each researcher.  Click on <br />
  the researcher's name to view more detailed information, or the researcher's <br />
  organization to view information about the organization.
  
  <br /><br />
  
  <a href="researcher_form.jsp">Create Researcher</a>
  
  <br /><br />

   <jsp:useBean id="isernManager" scope="page"
           class="edu.hawaii.myisern.model.IsernManager"/>
 
<table class="list">
        <th>&nbsp;       </th>
        <th>      Name </th>
        <th>      Organization </th>
        <th>      Email </th>
    <c:forEach items="${isernManager.researchers}" var="researcher" varStatus="rowstat">
      <tr class="${rowstat.count mod 2 == 0 ? "even" : "odd"}"> 
        <td><c:if test="${not empty researcher.pictureLink}">
          <img src="${researcher.pictureLink}" height=50/>
        </c:if>    
         </td>    
        <td>
        <stripes:link href="ResearcherForm.action" event="view">
            ${researcher.name} 
        	<stripes:param name="id" value="${researcher.name}"/>
        </stripes:link>
        </td>
        <td>
        <stripes:link href="OrganizationForm.action" event="view">
            ${researcher.organization}
        	<stripes:param name="id" value="${researcher.organization}"/>
        </stripes:link>  
        </td>
        <td><a href="mailto:${researcher.email}">${researcher.email}</a></td>
        </tr>
    </c:forEach>
</table>

<br /><br />

</stripes:layout-component>
</stripes:layout-render>
